package carassius.BLL.Events.Animal;

import carassius.DAL.AnimalRow;
import carassius.DAL.OrganismRow;

/**
 *
 * @author siebz0r
 */
public class AnimalPropertyChangedEvent
{
	private AnimalRow _source;
	private AnimalProperty _property;
	private Object _oldValue, _newValue;

	public AnimalPropertyChangedEvent(AnimalRow source, AnimalProperty property,
									  Object oldValue, Object newValue)
	{
		_source = source;
		_property = property;
		_oldValue = oldValue;
		_newValue = newValue;
	}

	public AnimalRow getSource()
	{
		return _source;
	}

	public AnimalProperty getProperty()
	{
		return _property;
	}

	public Object getOldValue()
	{
		return _oldValue;
	}

	public Object getNewValue()
	{
		return _newValue;
	}

	public enum AnimalProperty
	{
		AquariumHeight,
		AquariumLength,
		AquariumLiter,
		Breed,
		Feed,
		Origin,
		Schooling
	}
}
